package com.comtop.springboot.templet.modules.sys.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.comtop.springboot.templet.modules.sys.entity.SysUserTokenEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.io.Serializable;

/**
 * 系统用户Token
 * 
 * @author wangjiafang
 * @version 1.0
 * @since 2017-03-23 15:22:07
 */
@Mapper
public interface SysUserTokenMapper extends BaseMapper<SysUserTokenEntity> {

    @Select("select * from sys_user_token where token = #{token}")
    SysUserTokenEntity queryUserTokenByToken(String token);
}
